#include<iostream>
using namespace std;
const int N = 20;
int arr[N];
int n;
bool dfs(int u,int sum)
{
	if (u == n) {
		if (sum % 360 == 0) {
			return 1;
		}
		else {
			return 0;
		}
	}
	if (dfs(u + 1, sum + arr[u]))return 1;
	if (dfs(u + 1, sum - arr[u]))return 1;
	return 0;
}
int main()
{
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	if (dfs(0, 0)) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
	return 0;
}